package com.yanqu.road.entity.activity.suitang.entity.battle;

import com.yanqu.road.entity.activity.suitang.entity.team.CrossSuiTangTeamArrive;
import com.yanqu.road.entity.activity.tongbing.data.CrossTongBingTeamArrive;

public class CrossSuiTangBattlefieldTeam {

    private CrossSuiTangTeamArrive team = null; // 队伍
    private long teamNo = 0;     // 玩家为 userId，城防军则生成
    private long soldierNum = 0; // 城防军
    private int soldierType = 1; // 城防军类型(0:玩家 1:普通城防兵 2:特殊城防兵)
    private long battleCd; // 战斗 cd
    private long lastBattleTime; // 最后一次战斗结束时间
    // 处理战斗标识
    private boolean handlerFlag = false;

    public CrossSuiTangBattlefieldTeam() {
    }

    public CrossSuiTangBattlefieldTeam(CrossSuiTangTeamArrive team) {
        this.team = team;
        this.teamNo = team.getUserId();
        this.soldierType = 0;
    }

    public CrossSuiTangBattlefieldTeam(long teamNo, long soldierNum, int soldierType) {
        this.teamNo = teamNo;
        this.soldierNum = soldierNum;
        this.soldierType = soldierType;
    }

    public long getTeamNo() {
        return teamNo;
    }

    public void setTeamNo(long teamNo) {
        this.teamNo = teamNo;
    }

    public CrossSuiTangTeamArrive getTeam() {
        return team;
    }

    public void setTeam(CrossSuiTangTeamArrive team) {
        this.team = team;
    }

    public long getSoldierNum() {
        return soldierNum;
    }

    public void setSoldierNum(long soldierNum) {
        this.soldierNum = soldierNum;
    }

    public int getSoldierType() {
        return soldierType;
    }

    public void setSoldierType(int soldierType) {
        this.soldierType = soldierType;
    }

    public long getBattleCd() {
        return battleCd;
    }

    public void setBattleCd(long battleCd) {
        this.battleCd = battleCd;
    }

    public long getLastBattleTime() {
        return lastBattleTime;
    }

    public void setLastBattleTime(long lastBattleTime) {
        this.lastBattleTime = lastBattleTime;
        this.handlerFlag = false;
    }

    public boolean isHandlerFlag() {
        return handlerFlag;
    }

    public void setHandlerFlag(boolean handlerFlag) {
        this.handlerFlag = handlerFlag;
    }
}
